home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
bbsutil
/
gamest11.zip
/
GAMESTAT.DOC
< prev
next >
Wrap
Text File
|
1991-10-18
|
9KB
|
221 lines
╔══════════╗ ╓───╖ ╓──╖
║ ╔══╗ ║ ║ ╓──╖ ╓─╥─╖ ╓── ║ ─╥─ ╓──╖ ─╥─ ╥ ╥ ╓──╖
║ ║ ║ ╥ ║ ║ ╓─╖ ╟──╢ ║ ╨ ║ ╟─ ╙──╖ ║ ╟──╢ ║ ║ ║ ║ ║
║ ╠═╦╝ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╥ ╥ ║ ║ ║ ║
║ ║ ╚╗ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╙╖╓╜ ║ ║ ║ ║
║ ╨ ╨ ╚══ ║ ╙───╜ ╨ ╨ ╨ ╨ ╙── ╙──╜ ╨ ╨ ╨ ╨ ╙╜ ╨ ° ╨ ╙──╜
╚══════════╝ <c> 1991 RoyaLink Software
Written by Greg King (1:206/2503)
DISCLAIMER : This program has been tested to work. But, things happen so
RoyaLink Software and Greg King can not be held liable for
any effects that this software may have on your system. The
only gaurentee that is provided is that this software WILL
occupy disk space. USE THIS PROGRAM AT YOUR OWN RISK!
REGISTRATION : This version is provided completly free. My reasons for coding
this was to experiment with arrays, and to thank the door
authors for their hard work. I had the easy part and do not
feel compelled to charge for something like this. Subsequent
versions may have a different policy. If you feel compelled
to do something, send me a net-mail message so I know how you
like it.
ABOUT THIS : This software was written using POWER BASIC from Robert S. Zale.
PROGRAM It is intended to be run as part of your nightly event, so
memory restrictions should not be of concern.
------------------------------------------------------------------------------
Files Included
in the archive : Gamestat.doc (this document)
Gamestat.exe (The executable)
Gamestat.cfg (Sample configuration file)
If there are files missing or added, please let me know via netmail at
1:206/2503. Also tell me where you obtained the program from.
SETTING UP...
First, edit the configuration file to your liking.
I provided a sample file for you to edit and included instructions and
usage documentation in it. For future reference, leave the instructions in
the file as I will not go into them in this document.
Next, modify your door batch files to include a line that says
ECHO <doorname> >><input>
where doorname is the name of the door (limit 20 characters) and input is
the file you specified in GAMESTAT.CFG's INPUT option. The two greater
than signs are VERY important as they cause the text to be appended and
not overwritten. I know this is a lot of work, but it only has to be done
once!
When a user selects the door, your batch file will now add a line to the
input file that has the name of the door.
Here is an example using Land of Devestation...
c:
cd\d\lod
copy c:\p\info.bbs
xcon ph ra c:\u\xcon.cfg c:\d\lod
echo Land Of Devestation >>c:\games.dat <---------- this line!
game 1
cd\p
RUNNING Gamestat... In your nighlty event, cause your batch file to go
to the same directory as Gamestat.EXE and Gamestat.cfg (they must be in the
same directory unless you use the /c option described later).
Execute Gamestat.exe and then DELETE your input file (as specified in
Gamestat.CFG). This is important because I do not delete it in the program.
WHAT DOES IT DO? Gamestat reads in the games that are played and adds them
to a random file. Upon execution, it first adds one day to the existing
records. It then updates the games that have been played, adding any new
ones. It then divides the number of times played by the days the game has
been availible. Then it sorts the records by the average plays per day,
creates a graphical representation of usage and outputs the top 15 to the
file you specified in the config file.
Gamestat will now produce a colorized output as well. If you desire a
color output, then use the ansibull option in the config file. If you
do not want this option, comment that line out! The color options in the
config file will be ignored if you do not specify a color output.
.....................
Command Line Switches
.....................
EDIT
If you wish to purge some of the records for what ever reason, run
Gamestat with a command line parameter of EDIT (no slashes or anything,
just edit. That will pull up and editor that I threw together. It
should be pretty simple to figure out.
Note, using the editor function, you can only delete a record. No
other changes are allowed.
If you are running seperate data files, this will only edit GAMESTAT.DAT
in the current directory, so rename files as necessary.
/C <drive:\path\filename>
This option allows you to specify a different configuration file
than the default (gamestat.cfg). Combined with the datafile statement
in the configuration file, this feature allows creativity in the ways
you may run the program. Seperate reports per node are possible as is
an updated report after every call.
RESTARTING...
If you want to restart the program, delete Gamestat.dat (or other names
you may have specified in the datafile statement) and it will restart the
next time you run it.
SAMPLE EXECUTION:
Say you want an output after every call that only shows that days
games...
Copy over your config file over to a new name (I will use Today.cfg for
this explanation).
Change the datafile to something like today.dat, change the bulletin
names as appropriate. Change your bbs name to "TODAY's" and comment out
the nodenomber entry.
Execute ...
Gamestat /cToday.cfg
The program will run and only consider the games that have been played
so far today. Delete your today.dat or else wierd results will occur
after the next caller logs off!
Note that the title of the bulletin say
TODAY's On Line Game Summary
This is just one other execution example. Expierement and see what you can
come up with. If you would net-mail me back with some examples, I may
include them in the next distribution package with credit going to you.
SUPPORT: Should you experience any bugs or errors while running this
program, you can reach me via netmail at 1:206/2503 or call
my bbs at (805) 488-7430 (2400-9600 HST). I am also a regular
reader of the DOORWARE echo. Please be as descriptive as
possible and include the information contained in GAMESTAT.ERR
which is generated whenever an error is encountered.
----------------------------------------
- Thanks to the following Beta Testers -
----------------------------------------
Johnie Robinson (1:383/3396)
Bill Bailey (1:124/1701)
Paul Bailey (1:396/24)
Jim Kiersey (1:105/64)
Linda Thompson (1:275/50)
------------
- History: -
------------
1.00 (9/22/91)
Initial release
1.10 (10/20/91)
Corrected some oversights in the ANSI bulletin.
Editor showed incorrect number of files when you selected one for
deletion. This is fixed, as is the "empty Data File" bug when
you purge the file.
If you entitled a game with more than 20 characters, the program would
consider every playing a new game and add it to the data file. Game
titles more than 20 characters are now processed with the first 20
characters only.
A small "bug" in the configuration file was detected. If you declared
an option but did not supply an arguement to it, the program would
bomb with an error 5 providing no information as to why it wouldnt work.
This was corrected by adding some error checking that ended up shortening
the code by almost 10%! It will now abort with an error 199 and tell you
the offending line number.
Added an extra line in the bulletin that shows the average plays per
day of all game